﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using SqlMiM.Common;


namespace SqlMiM.ReportingServices
{
    public class PluginGroup : IPluginGroup
    {

        private int index = 2;
        private List<IPlugin> plugins;
        private ImageSource icon;


        public string Name { get { return "Reporting Services"; } }

        public string Description { get { return "Management de Reporting Services par Batch"; } }

        public ImageSource Icon
        {
            get { return this.icon; }
        }

        public List<IPlugin> Plugins
        {
            get
            {
                return plugins;
            }
            set
            {
                plugins = value;
            }
        }

        public int Index
        {
            get
            {
                return index;
            }
            set
            {
                index = value;
            }
        }
        

       
        public void Start()
        {
            this.plugins = new List<IPlugin>();
            this.plugins.Add(new ReportImportPlugin.Plugin(this));
            this.plugins.Add(new ReportExportPlugin.Plugin(this));
            //this.plugins.Add(new ReportImportFromSharepoint.Plugin(this));
            //this.plugins.Add(new ReportExportToSharepoint.Plugin(this));
        }

        public void End()
        {

        }


        public PluginGroup()
        {

            this.icon = new BitmapImage(new Uri("/SqlMiM.ReportingServices;component/Images/groupIcon.png", UriKind.Relative)); ;


        }

    }
}
